<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='lb'/></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
</head>
<body>

<%--<div class="layui-fluid">--%>
<%--<div class="layui-card">--%>
<%--<div class="layui-form layui-card-header layuiadmin-card-header-auto">--%>

<%--<div class="layui-form-item">--%>
<form name="totalForm" id="totalForm" action="${web_domain}/securitys/operation/list" method="get">

    <%--<div class="layui-inline">--%>
    <%--<label class="layui-form-label">用户名称</label>--%>
    <%--<div class="layui-input-inline">--%>
    <%--<input type="text" name="realName" placeholder="请输入姓名" value="<c:if test='${params.realName !=null}'>${params.realName}</c:if>" autocomplete="off" class="layui-input">--%>
    <%--</div>--%>
    <%--</div>--%>

    <%--<div class="layui-inline">--%>
    <%--<button class="layui-btn layui-btn-sm layuiadmin-btn-list" id="search"><i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> 搜索</button>--%>
    <%--</div>--%>
    <input type="hidden" name="type" value="${params.type}"/>
</form>
<%--</div>--%>
<%--</div>--%>

<%--</div>--%>

<div class="layui-card">
    <div class="layui-field-box layui-form">
        <%--<a href="javascript:void(0);" class="layui-btn layui-btn-sm layui-btn-normal" id="add"><i class="layui-icon">&#xe61f;</i> 添加</a>--%>

        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li <c:if test="${params.type eq 1}">class="layui-this"</c:if>>
                    <a href="${web_domain}/securitys/operation/list?type=1" <c:if test="${params.type eq 1}">style="color: rgb(0, 150, 136)"</c:if>><fmt:message key='xtrz'/></a>
                </li>
                <li <c:if test="${params.type eq 2}">class="layui-this"</c:if>>
                    <a href="${web_domain}/securitys/operation/list?type=2" <c:if test="${params.type eq 2}">style="color: rgb(0, 150, 136)"</c:if>><fmt:message key='sjrz1'/></a>
                </li>
            </ul>
        </div>

        <table class="layui-table" lay-size="sm">
            <thead>
            <th><fmt:message key='xh'/></th>
            <th><fmt:message key='czr'/></th>
            <th><fmt:message key='sj4'/></th>
            <th><fmt:message key='ipdz'/></th>
            <th><fmt:message key='sj'/></th>
            </thead>
            <c:forEach items="${page.result}" var="item" varStatus="status">
                <tr>
                    <td>${status.index + 1 }</td>
                    <td>${item.operation.username }</td>
                    <td>${item.event }</td>
                    <td>${item.ip }</td>
                    <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                </tr>
            </c:forEach>
        </table>
        <jsp:include page="/commons/page.jsp" flush="true"/>
    </div>
</div>

</div>

<script>

    $(function () {

    });
</script>
</body>
</fmt:bundle>
</html>
